const order = {
  state: {
    page: 1,
    status: '1',
    name:'',
    activityGoodsListPage: 1,
    goodsName: '',
    barCode: ''
  },
  mutations: {
    SAVE_PAGE: (state, page) => {
      state.page = page
    },
    SAVE_STATUS:(state,status)=>{
        state.status = status
    },
    SAVE_NAME:(state,name)=>{
        state.name = name
    },
    SAVE_ACTIVITY_GOODS_PAGE:(state,page)=>{
        state.activityGoodsListPage = page
    },
    SAVE_GOODS_NAME:(state,name)=>{
        state.goodsName = name
    },
    SAVE_GOODS_BARCODE:(state,barCode)=>{
        state.barCode = barCode
    },
  },
  actions: {
    saveActivityListPage({
      commit
    }, page) {
      commit('SAVE_PAGE', page)
    },
    saveActivityListStatus({
      commit
    }, status) {
        commit('SAVE_STATUS', status)
    },
    saveActivityListName({
        commit
    }, name) {
        commit('SAVE_NAME', name)
    },
    saveActivityGoodsListPage({
        commit
    }, page) {
        commit('SAVE_ACTIVITY_GOODS_PAGE', page)
    },
    saveActivityGoodsListName({
        commit
    }, name) {
        commit('SAVE_GOODS_NAME', name)
    },
    saveActivityGoodsListBarCode({
        commit
    }, barCode) {
        commit('SAVE_GOODS_BARCODE', barCode)
    },

  }
}

export default order